package com.xxx.service;

import com.xxx.dao.StudentDaoImpl;
import com.xxx.pojo.Student;

import java.util.ArrayList;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/29 10:51
 * @Copyright 博为峰
 */
public class StudentServiceImpl implements StudentService{

    public StudentServiceImpl() {
    }

    @Override
    public int addStudent(ArrayList<Student> list) {
        final StudentDaoImpl studentDao = new StudentDaoImpl();
        return studentDao.insert(list);
    }

    @Override
    public int deleteStudent(int studentId) {
        return 0;
    }

    @Override
    public int updateStudent(Student student) {
        return 0;
    }

    @Override
    public ArrayList<Student> queryStudents(Student student) {
        final StudentDaoImpl studentDao = new StudentDaoImpl();
        return studentDao.query(student);
    }
}
